package com.mapper;

import com.pojo.News;
import com.pojo.User;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
@Component
public interface UserMapper {

    @Select("select * from user where id = #{id}")
    public User findById(Integer id);

    List<News> findAll();
}
